//
//  CarHourAnnotation.h
//  Exam12-1
//
//  Created by 孙晓晔 on 2017/4/19.
//  Copyright © 2017年 孙晓晔. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MapKit/MapKit.h>
#import "Car.h"

@interface CarHourAnnotation : NSObject<MKAnnotation>

@property (nonatomic) CLLocationCoordinate2D coordinate;

// Title and subtitle for use by selection UI.
@property (nonatomic, copy, nullable) NSString *title;
@property (nonatomic, copy, nullable) NSString *subtitle;

@property(nonatomic,strong) Car * _Nullable car;

-(instancetype _Nullable )initWithCoordinate2D:(CLLocationCoordinate2D)coordinate2D;

@end
